package cn.livingCloud.service;

import cn.livingCloud.dto.*;

import java.util.List;

/**
 * Created by sujiantang on 2015/12/9.
 */
public interface ReplyRuleService {
    void findReplyRuleList(ReplyRuleListDto formDto);

    /**
     * 更新状态方法
     *
     * @param uuid  回复规则的uuid
     * @param state 前端传入的状态     true:执行启用,false:执行禁用
     */
    ReplyRuleDto updateState(String uuid, boolean state);

    void editOrSave(TextReplyRuleFormDto formDto);

    void delete(String uuid);

    void updateArticlesReplyRule(ArticlesReplyRuleFormDto formDto);

    TextReplyRuleDto getTextReplyContent(String uuid);

    TextReplyRuleFormDto loadTextReplyRuleFormDto(String uuid);

    ArticlesReplyRuleDto loadArticlesReplyRuleDto(String uuid);

    ArticlesReplyRuleFormDto loadArticlesReplyRuleFormDto(String uuid);

    List<ReplyRuleDto> searchRuleList(String key);
}
